package com.traffic.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.traffic.mapper.PerContractScheduleMapper;
import com.traffic.domain.PerContractSchedule;
import com.traffic.service.IPerContractScheduleService;

/**
 * 合同工Service业务层处理
 * 
 * @author 郭世纪
 * @date 2024-12-08
 */
@Service
public class PerContractScheduleServiceImpl implements IPerContractScheduleService 
{
    @Autowired
    private PerContractScheduleMapper perContractScheduleMapper;

    /**
     * 查询合同工
     * 
     * @param id 合同工主键
     * @return 合同工
     */
    @Override
    public PerContractSchedule selectPerContractScheduleById(Long id)
    {
        return perContractScheduleMapper.selectPerContractScheduleById(id);
    }

    /**
     * 查询合同工列表
     * 
     * @param perContractSchedule 合同工
     * @return 合同工
     */
    @Override
    public List<PerContractSchedule> selectPerContractScheduleList(PerContractSchedule perContractSchedule)
    {
        return perContractScheduleMapper.selectPerContractScheduleList(perContractSchedule);
    }

    /**
     * 新增合同工
     * 
     * @param perContractSchedule 合同工
     * @return 结果
     */
    @Override
    public int insertPerContractSchedule(PerContractSchedule perContractSchedule)
    {
        return perContractScheduleMapper.insertPerContractSchedule(perContractSchedule);
    }

    /**
     * 修改合同工
     * 
     * @param perContractSchedule 合同工
     * @return 结果
     */
    @Override
    public int updatePerContractSchedule(PerContractSchedule perContractSchedule)
    {
        return perContractScheduleMapper.updatePerContractSchedule(perContractSchedule);
    }

    /**
     * 批量删除合同工
     * 
     * @param ids 需要删除的合同工主键
     * @return 结果
     */
    @Override
    public int deletePerContractScheduleByIds(Long[] ids)
    {
        return perContractScheduleMapper.deletePerContractScheduleByIds(ids);
    }

    /**
     * 删除合同工信息
     * 
     * @param id 合同工主键
     * @return 结果
     */
    @Override
    public int deletePerContractScheduleById(Long id)
    {
        return perContractScheduleMapper.deletePerContractScheduleById(id);
    }
}
